package kuonjisai.oop;

public class test {


	public static void main(String[] args) {
	J31_RetangleVO rvo = new J31_RetangleVO( 4.5F, 4.9F, "red");
	J31_RetangleInterface rs = new J31_RetangleService();
		
	System.out.println( "사각형의 면적 : " +  rs.getArea(rvo) );	
	System.out.println( "사각형의 둘레 : " + rs.getPerimeter(rvo) );
	
	J31_FanVO fvo = new J31_FanVO( J31_FanVO.getFast(), true, 5.5F, "white");
	J31_FanInterface fs = new J31_FanService();
	
	fs.toString(fvo);
	
	J31_AccountVO avo = new J31_AccountVO(112, 32000, 4.5F, "2013-07-08");
	J31_AccountInterface as = new J31_AccountService();
	
	System.out.println( "연간 이자율 : "+ as.getMonthlyInterestRate(avo) );
	System.out.println( "현재통장 잔액 : " + avo.getBalance() );
	as.withDraw(avo, 5000);
	System.out.println( "5000원 인출후통장 잔액 : " + avo.getBalance() );
	as.deposit(avo, 3000);
	System.out.println( "3000원 입금후통장 잔액 : " + avo.getBalance() );
	
	J31_StockVO svo = new J31_StockVO("경영기술", 1000000, 750000);
	J31_StockInterface sis = new J31_StockService();
	
	System.out.println( "종목명 : " + svo.getSname());
	System.out.println( "종가 : " + svo.getPreviousClosingPrice());
	System.out.println( "현재가 : " + svo.getCurrentPrice() );
	System.out.println( "주가변동률 : " + sis.getChangePercent(svo));
	
	
	}

}
